I'm having a problem serializing out to yaml in a format I expect.  My documents with dictionaries look something like this:

1:
    text: value
    text2: value2

>>> import yaml
>>> yaml.load('1:\n    text: value\n    text2: value2')
{1: {'text2': 'value2', 'text': 'value'}}
>> loaded=yaml.load('1:\n    text: value\n    text2: value2')
>>> yaml.dump(loaded)
'1: {text: value, text2: value2}\n'
>>> print yaml.dump(loaded)
1: {text: value, text2: value2}

I can't get the output to resemble the original document.  The internal dictionary is output with braces. Is there a way to output something closer to the original?

Thanks,
Doug