Fix pep8 formatting issues
Fix pep8 issues in test code
Don't use or recommend import * to import constants
Use named constant in error conversion
Prepare for version 0.9.0
Rename test dir to tests