code: def _get_extra_price_id(items, key_name, hourly, location):
      
  
      for item in items:
          if utils.lookup(item, 'keyName') != key_name:
              continue
  
          for price in item['prices']:
              if not _matches_billing(price, hourly):
                  continue
  
              if not _matches_location(price, location):
                  continue
  
              return price['id']
  
      raise SoftLayer.SoftLayerError(
          "Could not find valid price for extra option, '%s'" % key_name)
docs: Returns a price id attached to item with the given key_name.