updated print function to be py3 compatible in test harness