def gen_not_started(gen):
 return (gen.gi_frame and (gen.gi_frame.f_lasti == (-1)))

def gen_not_started ( gen ) : return ( gen . gi_frame and ( gen . gi_frame . f_lasti == ( - 1 ) ) )
return true if generator is not started .