Extract ctypes-type functions out of __init__.py