Python interface to Karotz