are python libraries written in c?
The standard Python interpreter is written in C (also known as CPython). Most of the standard library that comes along with this version of Python is written in Python itself, other parts written in C or making use of C libraries internally.