def list_to_filename(filelist):
 if (len(filelist) > 1):
  return filelist
 else:
  return filelist[0]

def list_to_filename ( filelist ) : if ( len ( filelist ) > 1 ) : return filelist else : return filelist [ 0 ]
returns a list if filelist is a list of length greater than 1 .