Both .py and .pyc files are sources and scripts for Python language, which means py to pyc conversion likely represents the process of code compilation. If you know the language you can work with them and perhaps manually convert one to another, but maybe both files are just same file types using different file extension.
Open PY file Open PYC file