Update yamldumper.py

fixed wrong import
Merge pull request #10411 from johnnoone/patch-1

Update yamldumper.py