10 Answers. Show activity on this post. It’s compiled to bytecode which can be used much, much, much faster . The reason some files aren’t compiled is that the main script, which you invoke with python main.py is recompiled every time you run the script.