Try `scikit-feature` MI implementation: https://github.com/jundongl/scikit-feature/blob/master/skfeature/utility/entropy_estimators.py