dictionary - added python generator