Add a decorator that allows using the yield keyword instead of gyield