changed test.py to print on same line