'Adds all the distance penalties from `dist`.'

def update(self, dist):

    if (not isinstance(dist, Distance)):
        raise ValueError(u'`dist`    must    be    a    Distance    object,    not    {0}'.format(type(dist)))
    for (key, penalties) in dist._penalties.items():
        self._penalties.setdefault(key, []).extend(penalties)
