changing structure of yaml parsing code and adding simple checks
Summary: some minor changes to how yaml is parsed and adding some simple checks
Test Plan: Some local testing, not much to do until there are runner changes
Reviewers: kparal, jskladan
Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D4