Tests improvements

* Adds redis dependency for testing.
* Fixes `iteritems` and assert usage for different Python versions.
* Adds unittest2 dependency for Python 2.6 tests.
* Backports `skipUnless` for Python 2.6.