import six


def scale_result(result, scaler):
    """Return scaled result.

    Args:
        result (dict): Result.
        scaler (number): Factor by which results need to be scaled.

    Returns:
        dict: Scaled result.

    """
    scaled_result = {}
    for key, val in six.iteritems(result):
        scaled_result[key] = scaler * val
    return scaled_result