Python interface to Generate
