def value_and_max_prob_from_dist(dist):
    """
    Returns the max probability and value from a distribution:
    Ex: From: {0.0: 0.1, 0.33: 0.4, 0.66: 0.2, 1.0: 0.3}
        Returns: (0.33, 0.4)
    """
    value = max(dist, key = dist.get)
    max_prob = dist[value]

    return value, max_prob