On success, returns a new file object that is opened on the
file given by file_name, with a file mode given by mode,
where mode has the same semantics as the standard C routine
fopen(). On failure, return -1.
PyObject* PyFile_FromFile (FILE *fp, char *file_name, char *mode, int close_on_del)
Return a new file object for an already opened standard C file
pointer, fp. A file name, file_name, and open mode,
mode, must be provided as well as a flag, close_on_del,
that indicates whether the file is to be closed when the file object
is destroyed. On failure, return -1.
Returns a new string object with the value v and length
len on success, and NULL on failure. If v is NULL,
the contents of the string are uninitialized.