'Given a bit.ly url or hash, return long source url'

def expand(self, shortURL):

    request = self._getURL('expand', shortURL)
    result = self._fetchUrl(request)
    json = simplejson.loads(result)
    self._CheckForError(json)
    return json['results'][string.split(shortURL, '/')[(-1)]]['longUrl']
