Whenever a python script is modified, it should be compiled, and the compiled code should be stored in the database, and then used for executing the script.