fixes for python2.6 (rewrite branch)

see https://travis-ci.org/dnozay/unittest-xml-reporting/builds/28906559.
`master` branch was working fine for me for python 2.6; after switching to `rewrite` branch I had some issues with unittest. These changes allows me to run the unit tests with python 2.6.