for i in configuration_item[\'configuration\'][\'ipPermissions\']: if i[\'FromPort\'] == \'23\': compliance_type = \'NON_COMPLIANT\' a