Python proporciona varios módulos para facilitar el trabajo con el propio lenguaje. Estos módulos dan soporte a gestión de símbolos, análisis léxico y sintáctico, desensamblado de bytecode y otros servicios diversos.
Estos módulos incluyen:
| parser | Access parse trees for Python source code. |
| symbol | Constants representing internal nodes of the parse tree. |
| token | Constants representing terminal nodes of the parse tree. |
| keyword | Test whether a string is a keyword in Python. |
| tokenize | Lexical scanner for Python source code. |
| tabnanny | Tool for detecting white space related problems in Python source files in a directory tree. |
| pyclbr | Supports information extraction for a Python class browser. |
| py_compile | Compile Python source files to byte-code files. |
| compileall | Tools for byte-compiling all Python source files in a directory tree. |
| dis | Disassembler for Python byte code. |