Make some print calls Python 3 compatible