dcor helper function fix and addition in compiled python