FIX isfileobj accepts write-mode files under PY3