Update yamlwriteread.py