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:
31.5. importlib — The implementation of import
32.1. parser — Access Python parse trees