[WIP] Convert prints to loggers

Not ready to merge.  

I also have other random code cleanups that were necessary to fix PyFlakes errors.