added simple url validation
pep8/flake8 cleanup