Cleanup: If it is True there is no need to check if it is True
Cleanups: Apply styleguide conventions for comments
Cleanup: Use print as function
Cleanup: Use implicit line continuation

It is cleaner that the backslash.
Cleanups: Cleaner way to set dictionaries
Minor globals cleanup

Make clear how many globals there are, and make them to appear at the
top of the code block.
Cleanups: Just shorten code