python generator send example