Fixed print keyword problem for Python 3.4 compatibility

Changed to function syntax for print() instead of the removed keyword syntax