adding the working version for the dirichlet functors with python
Signed-off-by: Guillaume Anciaux <guillaume.anciaux@epfl.ch>