pep8 violation fixes
Correct pylint violations
Add test case for invalid handler URLs
Address comments