Changes for App Engine compatibility

- Do not use ctypes if not available
- Allow user to specify module when pickling