[DEV-258] Don't catch TypeErrors in handlers

I also made a bunch of lint changes. Just I reminder that you need to get Syntactic with Flake8 set up for your Vim.