Using PyYAML, if I read in a file with blank values in a dict:
test_str = \'\'\' attrs: first: second: value2 \'\'\'
This returns Non
Non
just use string replace
print(yaml.dump(data).replace("null", ""))