gast

Python AST that abstracts the underlying Python version

Here are some articles that you may find helpful