More python 3 fixes. Log what we're printing out.