greentext.pl: Ported to Python3.