terrain/trees: A big pile of PEP8 fixes.
utilities/maths: Add Pythagorean distance, and test.
terrain/trees: Fix up a couple distance calculations.