Importing a module is a relatively costly affair, so Python does some optimizations to create byte-compiled files with the extension .pyc . If you import a module such as, say, module.py, then Python creates a corresponding byte-compiled module.pyc . This file is useful when you import the module the next time (even from a different program) - it will be much faster. These byte-compiled files are platform-independent.