Trend Filtering Python Programming