def combine_lists(*seqs):
 result = []
 for seq in seqs:
  if (seq is None):
   continue
  if isinstance(seq, (bytes, string_types, dict)):
   result.append(seq)
  else:
   try:
    result.extend(seq)
   except:
    result.append(seq)
 return result

def combine_lists ( * seqs ) : result = [ ] for seq in seqs : if ( seq is None ) : continue if isinstance ( seq , ( bytes , string_types , dict ) ) : result . append ( seq ) else : try : result . extend ( seq ) except : result . append ( seq ) return result
concatenate the given sequences into a list .