Fixing issues noted by peterbe in code review

Thanks for all the feedback in [pull request 5](https://github.com/mozilla/PyHawk/pull/5).