Fixing root factory for newer pyramid versions