Exception handling should be compatible with python 2.7 and 3.x.
Merge pull request #61 from thedrow/patch-1

Exception handling should be compatible with python 2.7 and 3.x.