A clone of THREES in console and in python