Python - How do I convert "an OS-level handle to an open file" to a file object? Python - How do I convert "an OS-level handle to an open file" to a file object? python python