fix ctypes tests to work with both py2/py3