move to popen so it works on old python