Use PyObject_AsFileDescriptor instead of PyFile_AsFile and fileno.

So that apr_file_from_object works under Win32.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>