Python implementation of Visvalingam and Whyatt's algorithm for reducing the complexity of poly-lines