def rescale(values, factor):
    """
    Returns a new dictionary of scaled values

    The values are scaled by the scale factor given
    """
    return {key: value * float(factor) for (key, value) in values.iteritems()}