upgrate url.py