def test(conf_name): """Test yaml file to see how many keys exist""" creds = conf.__getattr__(conf_name) print("{} keys found, if this value seems low, there may be a YAML error".format(len(creds)))