autoidentify.pl: Ported to Python3.