docs: def _writeDict(self, o):
          """
          Write C{dict} to the data stream.
  
          @param o: The C{dict} data to be encoded to the AMF0 data stream.
          """
          for key, val in o.iteritems():
              if type(key) in python.int_types:
                  key = str(key)
  
              self.serialiseString(key)
              self.writeElement(val)