Python module to simulate discrete probabilities