use normal file pointers for python 3 library, might cause problems on windows for now