Renaming some functions in dirichlet.py