fix pymdht for experiment

Fixed some errors in pymdht code. Rauljim hasn't merged the pull request yet. Use my branch for now.

This fix will fix community experiments on jenkins.