code: def get_policies_from_aws(client, scope='Local'):
          
          done = False
          marker = None
          policies = []
  
          while not done:
              if marker:
                  response = client.list_policies(Marker=marker, Scope=scope)
              else:
                  response = client.list_policies(Scope=scope)
  
              policies += response['Policies']
  
              if response['IsTruncated']:
                  marker = response['Marker']
              else:
                  done = True
  
          return policies
docs: Returns a list of all the policies currently applied to an AWS Account. Returns a list containing all the
          policies for the specified scope
  
          Args:
              client (:obj:`boto3.session.Session`): A boto3 Session object
              scope (`str`): The policy scope to use. Default: Local
  
          Returns:
              :obj:`list` of `dict`