Apply code formatting fixes + import url_for.