One way I've found is to dig into C/C++ extensions to Python. The Python C API reference is very helpful: https://docs.python.org/3/c-api/index.html
It can be quite fun to implement a simple data structure (tree, queue, etc.). in C and bind it to Python.
Otherwise, you can get a lot of dirty details by reading the source to complicated/magical libraries (e.g. pickle).