...
UPDATE: The following are probably obsolete. There are approx. 2,000 lines of R code to convert to Python, and Python doesn’t seem to be the best fit for this project, particularly in terms of speed.
See https://aesl.ces.uga.edu/psa/r/mrv/ for where I currently am with this project.