A pure-python implementation of the lowess algorithm