Use subprocess.Popen as checkout is not available in python 2.6