title: Access currently running code from itself
body: <p>Is it possible for a python program to access its own code while running? I want to be able to detect random in-memory bit flips during runtime. I plan on recomputing a checksum of the currently running code (the entire file in memory, not just the currently running function) every few minutes to ensure it has not been corrupted. </p>