Use yaml format for input data...

and use pre-canned yaml parser to save effort and fragility in input parsing.
Note this adds dependency on pyyaml.