Added Python generator