Trivial typos not affecting behavior.
Clean up some Python use of deprecated raise "string"
remove unnecessary Python imports of exceptions
Remove extra exception imports.
Merge pull request #1073 from mtbc/trac-2581

Various code cleanup, mostly Python exceptions