fileobject for PY3