def getDictionaryString(dictionary):
 output = cStringIO.StringIO()
 keys = dictionary.keys()
 keys.sort()
 for key in keys:
  addValueToOutput(0, key, output, dictionary[key])
 return output.getvalue()

def getDictionaryString ( dictionary ) : output = cStringIO . StringIO ( ) keys = dictionary . keys ( ) keys . sort ( ) for key in keys : addValueToOutput ( 0 , key , output , dictionary [ key ] ) return output . getvalue ( )
get the dictionary string .