solve generators and koans in the python koans