Python 3 compatibility for print_ascii