def parseDict(parent):
 parent.count = 0
 while True:
  key = Object(parent, 'key[]')
  (yield key)
  if (key['bytecode'].value == '0'):
   break
  (yield Object(parent, 'value[]'))
  parent.count += 1

def parseDict ( parent ) : parent . count = 0 while True : key = Object ( parent , 'key[]' ) ( yield key ) if ( key [ 'bytecode' ] . value == '0' ) : break ( yield Object ( parent , 'value[]' ) ) parent . count += 1
format is: where each keyi and valuei is an object .