When you run a Python script, Python automatically creates the script to a compiled code. This is called Bytecode. In the Python script, if any module is newly imported or when the source is more recent than the currently compiled file, a .pyc file containing the compiled code will usually be created in the same directory as the .py file. When you run the program next time, Python uses this file to skip the compilation step.