title: hot reloading / swapping with Python
body: <p>I want code changes to take effect immediately during development. How can I detect changed files and reload them in the running Python (2.7) application?</p>
  
  <p>Edit:</p>
  
  <p>After reading the pages linked by 'Ivo van der Wijk', I think it would be best to restart the web application when code changes - like Django does. So the actual question is: <a href="https://stackoverflow.com/questions/3863243/how-to-detect-changed-python-code-monitoring-files">How to monitor file modifications?</a></p>