pep8 and add class UrlObject in utils.py for uniqing url

1. pep8 all the code and remove unused import
2. forgot to add UrlObject class for uniqing url in utils.py before.囧