making gse2 more python 3 compatible

 - adding function to access python file pointer in c (replacement of
   PyFile_AsFile
 - more general python 3 compatibility stuff
 - status: all test_libgse2.py running, parts of test_core.py running