Merge pull request #60 from gem/std-losses

Compute Curve stats
Merge branch 'master' into revise-insured-losses
pep8 fixes
pep8/pyflakes fixes