code: 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
docs: Find allowed not-principals.