Turns out subprocess.check_output was introduced in 2.7.