more Calculate Distance

Haskell, Python2