Fixes the issue reported in #769, and a few other uses of check_output which won't work on Python 2.6
Merge pull request #769 from iguananaut/issue-769

0.2b2 doesn't install on python 2.6