Fix yaml2json script, support more formatting options
PEP8 says..