def seq_to_list(seq):
 if (not isinstance(seq, (list, tuple))):
  return [seq]
 return list(seq)

def seq_to_list ( seq ) : if ( not isinstance ( seq , ( list , tuple ) ) ) : return [ seq ] return list ( seq )
convert non-sequence to 1 element sequence .