Parsing Firewall configurations in Python