SageMath has various modules to provide access to low-level Python internals.
Various functions to debug Python internals
Enter search terms or a module, class or function name.