COMPLETE REWRITE using Python to fix resolution errors from truncation to integer.

COMPLETE REWRITE using Python to fix resolution ERRORS from truncation to integer esp. when (max-min) < 8. Decimals in data are retained for full accuracy. The main logic is much clearer in Python.