Python implementation of tasseo