fixing python3.x print in unit test