lazy_generator: Fixed some syntax issues