Python 3 compatibility for print_ascii

chr() in python 3 takes a Unicode ordinal.