Question: what are pyc and pyo files?
Answer: pyc files are python files compiled to byte code by the interpreter. They are generated normally when a file is imported. . pyo are compiled byte code without line numbers, assertions, and some other things (possibly doc strings) for optimzation purposes. ... pyo file also stripped of docstrings.