Fix TextCreditFormatter on python3