rework python generators: we can make use of the classes/inheritance language feature...