title: python and securing pyc files on disk
body: <p>I set django's settings.py file to chmod 600 to keep felonious folks from spying my database connection info, but on import python compiles this file and writes out settings.pyc as mode 644. It doesn't take much sleuthing for the bad guys to get the info they need from this compiled version. I fear my blog entries are in grave danger.</p>
  
  <p>Beyond the obvious os.chmod, what techniques folks use to keep your compiled python secure on disk?</p>