See the memory_graph package for a visual representation of your Python program state while using one of various debugger tools. Alternatively debugger tool Python Tutor can be used to visualize the state of a small program.
Full disclosure: I am the developer of memory_graph.