A weighted random module for Python.