Python Print Yaml Format Validation