Support python 3; deprecate 2.6

The `subprocess` module is missing `check_output` in 2.6.