astroid

An abstract syntax tree for Python with inference support.

Here are some articles that you may find helpful