Python Byte code is a way of speed-up of the start-up time for short programs that
use a lot of standard modules.
It will done automatically we need not do anything to generate pyc files.
pyc is compiled version of associated py file, if py file time stamp is not changed then interpreter uses pyc file to link the program. If original py file changes then it will agian recreate pyc file in the same folder.
pyo files can be created using the python -o syntax.
The module compileall can create
".pyc" files (or ".pyo" files when -O is used) for
all modules in a directory.