drop `print` references
initial py3 compatibility fixes