We have a solution for static analysis of Python code online: https://www.quantifiedcode.com
Currently we're using machine learning mostly behind the scenes to optimize our hand-written patterns for analysis and refactoring, but we started working on a deep learning based system to improve our analysis, using data we've collected from the 10.000 software projects we are analyzing right now.