open gzip files in text mode in the tadm classifier trainer
encoding option for doctest files in runtests.py