Added Travis-CI badge and fixed failing test in Python 2.6.