redo-ing explicit.pyx
Implemented computation of the D-functions in the talk until I got rather frustrated with them not "working".