Updated ai prints for python3
Python3 compatibility fixes