Hodrick-Prescott filter for python

See http://backwardsinduction.wordpress.com/2013/01/17/hodrick-prescott-filter-for-python/