ctypes is a python built-in library that invokes exported functions from native compiled libraries.
ctypes
Note: Since this library handles compiled code, it is relatively OS dependent.