fixes #45 better repo url validation
pep8/flake8 cleanup