Fix py2.6--use Popen instead of check_output