As far as I know, changes in .py files does not imply a module update for the changes to work. Would it not be optimal to detect changes only in XML files ?
The problem here is that a simple change in .py file triggers the module updates which takes additional time when running the server.