Fix copyright headers
Finish .../stats/... (#203)
Fix tests for Python 2.5 and 2.6