code: def get_products_metadata_path(year, month, day):
      
  
      products = {}
      path = 'products/{0}/{1}/{2}/'.format(year, month, day)
      for key in bucket.objects.filter(Prefix=path):
          product_path = key.key.replace(path, '').split('/')
          name = product_path[0]
          if name not in products:
              products[name] = {}
  
          if product_path[1] == 'metadata.xml':
              products[name]['metadata'] = key.key
  
          if product_path[1] == 'productInfo.json':
              products[name]['tiles'] = get_tile_metadata_path(key.key)
  
      return products
docs: Get paths to multiple products metadata