Fix tests for Python <= 2.6
Add a script to check copyrights with git log. And fix copyrights.