def parse_extra_info(info):
 if (not info):
  return info
 finfos = info.split(';')
 data_for_files = {}
 for finfo in finfos:
  items = finfo.split('{')
  if (len(items) == 1):
   fname = fake_sff_name
   info = items[0]
  else:
   fname = items[0]
   info = items[1]
  info = info.replace('}', '')
  data = {}
  for item in info.split(','):
   (key, value) = item.strip().split(':')
   key = key.strip()
   value = value.strip()
   data[key] = value
  data_for_files[fname] = data
 return data_for_files

def parse_extra_info ( info ) : if ( not info ) : return info finfos = info . split ( ';' ) data_for_files = { } for finfo in finfos : items = finfo . split ( '{' ) if ( len ( items ) == 1 ) : fname = fake_sff_name info = items [ 0 ] else : fname = items [ 0 ] info = items [ 1 ] info = info . replace ( '}' , '' ) data = { } for item in info . split ( ',' ) : ( key , value ) = item . strip ( ) . split ( ':' ) key = key . strip ( ) value = value . strip ( ) data [ key ] = value data_for_files [ fname ] = data return data_for_files
it parses the information that will go in the xml file .