#!/usr/bin/python3 import yaml f = open('rules.yaml') dohicky = yaml.safe_load(f) for i in dohicky: print(i) #print(dohicky) f.close()