Add Python 2.6 subprocess.check_output compat.

Addresses part of #3. Thanks Greg Hewgill for the suggestion!