Added python26 compatibility.

Main fix was using subprocess32 on 2.6 which backports check_output from
2.7+'s subprocess.

Using unittest2 which backports methods introduced in python2.7's
unittest.