should use `if not pyramid.compat.PY3`