url resolving changed
some pep8