use gen.Return for Python 2