def _is_in_group(opt, group):
 for (key, value) in group._opts.items():
  if (value['opt'] == opt):
   return True
 return False

def _is_in_group ( opt , group ) : for ( key , value ) in group . _opts . items ( ) : if ( value [ 'opt' ] == opt ) : return True return False
check if opt is in group .