Implementation of the WSPD algorithm with Python.