A rewrite of the TABARI program in Python