[Py3] Fixes unordrable problem in close_open_fds