Move encoding before first import
Test Python 3.4
Remove unused strings
PEP8 import and blank lines
Use traceback to print the exception