#!/usr/bin/python3 import yaml f = open('rules.yaml') dohicky = yaml.safe_load(f) f.close()