Add pypy compat by checking for PyErr_SetFromErrnoWithFilenameObject