Install unittest for Python 2.6 on Travis, pass not binary mode while creating named temporary file in tests.