Converted format to Python standards
Moved global vars to the top
Small change in program description