Updated distFromMax.py

distFromMax.py changed to run well through github