Fix Python Test Script for Python 3+

"print" is a function as of python 3+, whereas it was a statement in python 2 and below, and the braces were optional where they now are not. Also removed a couple whitespace lines.