Fixed Unittests

Python26 compatibility