updated print to print() for python3 compatibility