title: How to monitor Python files for changes?
body: <p>I want to restart my Python web application, if code gets changed. But there could be a large number of files that could be changed, since files in imported modules could change ... </p>
  
  <p>How to get the actual file names from imported packages / modules?</p>
  
  <p>How can modified Python files be detected efficiently? Is there a library to do that?</p>