def execute(cmd):
    import subprocess
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=
    subprocess.PIPE)
stdout, stderr = proc.communicate()
return stdout, stderr, proc.returncode
Как использовать Subversion Ctypes Python Bindings?