to fix WindowsError: [Error 32], Return an open file object connected to the file descriptor level