Sketch batch controller in python