correct list comprehension for older versions of python (back to python 2.4)
Or is "rules_egree" supposed to be a plural? The sentence is difficult to parse. Maybe the correct fix is to "Purge existing rules on security group that are not found in rules_egress"?