PK
Python provides a number of modules to assist in working with the Python language. These modules support tokenizing, parsing, syntax analysis, bytecode disassembly, and various other facilities.
These modules include:
parser
compile()
ast
symtable
symbol
token
keyword
tokenize
tabnanny
pyclbr
py_compile
compileall
dis
pickletools
31.7. runpy — Locating and executing Python modules
runpy
32.1. parser — Access Python parse trees