Django compatibility

See aseerings comment on https://github.com/quora/mysql-ctypes/pull/11