using subprocess.Popen instead of subprocess.check_output, to be compatible with older python that comes with debian wheezy