def write_table(self, d):
self._flushbits()<EOL>table_data = AMQPWriter()<EOL>for k, v in items(d):<EOL><INDENT>table_data.write_shortstr(k)<EOL>table_data.write_item(v, k)<EOL><DEDENT>table_data = table_data.getvalue()<EOL>self.write_long(len(table_data))<EOL>self.out.write(table_data)<EOL>
Write out a Python dictionary made of up string keys, and values
        that are strings, signed integers, Decimal, datetime.datetime, or
        sub-dictionaries following the same constraints.