Cosmetics.
Allow any printable character in the program name.
Python 2 and 3 compatibility.