def getNormalized( counts ):
    """Rescale a list of counts, so they represent a proper probability distribution."""
    tally = sum( counts )
    if tally == 0:
        probs = [ d for d in counts ]
    else:
        probs = [ d / tally for d in counts ]
    return probs