Python 3 compatibility

Python 3 compatibility, 
PEP8 and Lint Fixes, 
changed the "%s" % VAR to use the recommended "{}".format(VAR),
added metadata so the imported module has human help,
added encoding declaration to prevent special characters breaking it,
changed print "blah" to recommended print("blah")