title: Why are some Python standard libraries written in .so while most others are in .py?
body: <p>Most of the standard libraries are written in Python .py files, but some are in .so files on Unix and .pyd on Windows. For example os is written in os.py while pyexpat is written in pyexpat.cpython-36m-darwin.so. What's so special about these .so libraries?</p>