fixed "yield" (generator functions) for python mode and javascript mode.
TODO: support "yield" for dart and coffee.