Unified file type, compatible py3k.

python3 been removed PyFile_AsFile, recommendations unified interface parameters, modify FILE * to filename compatible pk3k.