fix pymdht for experiment

Fixed some errors in pymdht code. Rauljim hasn't merged the pull request yet. Use my branch for now.