Changed raise statement to work with Python 3
Merge pull request #1 from diamondap/master

Changed raise statement to work with Python 3