.py files are Python source files. .pyc files are the compiled bytecode files that are generated by the Python compiler