Ctypes specific implementation of certain modules