clean up module loads and remove ctypes stuff