updated pythonpath in Procfile
linting fixes
added error handler for client exception
handled more errors
added an init method to exceptions
added more tests, added docstrings