yaml safe_dump with export('yaml', safe=True)