Added global variables, reformatted main message

and Py version check using the string format method.