def flatten(seq):
  result = []
  for item in seq:
    if hasattr(item, "__iter__") and not isinstance(item, basestring):
      result.extend(flatten(item))
    else:
      result.append(item)
  return result
Return the import/export_transform lines for a datastore type.
dataset/ETHPy150Open skyostil/tracy/src/common/Collections.py/flatten--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/bulkload/bulkloader_wizard.py/DatastoreTypeToTransforms