#!/usr/bin/env python

from ciscoconfparse import CiscoConfParse

cisco_cfg = CiscoConfParse("config.txt")

crypto = cisco_cfg.find_objects(r"^crypto map CRYPTO")

for i in crypto:
     print i.text
     for child in i.children:
         print child.text





