and e.level is lesser than checks.CRITICAL. append e to criticals list for every e in all_issues, if checks.CRITICAL is lesser than or equal to e.level.
criticals = [ e for e in all_issues if checks . CRITICAL <= e . level ]