def allows_not_principal(self):
        """Find allowed not-principals."""
        not_principals = []
        for statement in self.statements:
            if statement.not_principal and statement.effect == "Allow":
                not_principals.append(statement)

        return not_principals
def allows_not_principal ( self ) : not_principals = [ ] for statement in self . statements : if statement . not_principal and statement . effect == "Allow" : not_principals . append ( statement ) return not_principals
Find allowed not-principals.