code: def _get_location(package, location):
      
      for region in package['regions']:
          if region['location']['location']['name'] == location:
              return region
  
      raise SoftLayer.SoftLayerError("Could not find valid location for: '%s'" % location)
docs: Get the longer key with a short location name.