Clean up old python2 format print in dump
Moved default global variables out of the main script file
PEP8 cleanups