Fix problem compiling gphoto2_file with Python3