Detrending and python port

Add exp + linear detrending, QA trend summaries.
Port stats and graphing to python 2.7