Adding skeleton for a python generator