python yaml.dump bad indentation

I'm executing the following python code: import yaml foo = { 'name': 'foo', 'my_list': [{'foo': 'test', 'bar': 'test2'}, {'foo': 'test3', 'bar': 'test4'}], 'hello': 'world' } print(y...