Changes to make this work on GAE where ctypes is blacklisted.