Add support for python 2.6.
Done by using a backport of unittest and adjusting the regex
as Python 2.6 doesn't support flags in sub().
Add explanations, make required changes and fix regex I broke.
Merge pull request #15 from AceFire6/add_python2.6_support

Add support for python 2.6.