add PEP-263 encoding declaration
Merge pull request #18 from hulu/fix-bare-excepts

specify exception types in all except clauses; fixes #16
initial tests and infra for testing
rename config -> CONFIG; makes pylint happier
rename f -> func; make pylint happier
finish dealing with pylint