Python implementation of L1 trend filtering algorithm using the cvxopt library. The paper describing this technique can be found here
Here are some different fits for a timeseries downloaded from here
This can be also very usefull for removing outliers