Automated python interface creation with ctypes