Python implementation of L1 trend filtering algorithm