Decode check_output to fix split issue.
Remove python 2.6 support as it does not have check_output.