Compute profile distances using both R and Python. The GDAL-based python code is fast enough to be useful for a large number of distance computations.