Refactor to print in __str__
Move around imports to avoid setup.py import issues.
change import
merge master; resolve conflicts
fix flake8
Merge branch 'restexception-changes'