Py3 print and some minor changes