def METHOD_NAME(name):
    python = os.path.join(os.path.dirname(settings.BASE_DIR), "env", "bin", "python")
    cmd = [python, os.path.join(SYNC_BIN_PATH, name)]
    cmdstring = " ".join(cmd)
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    out, err = p.communicate()
    out = out.decode('utf-8')
    err = err.decode('utf-8')
    if p.returncode:
        log("Subprocess error %s when running '%s': %s %s" % (p.returncode, cmd, err, out))
        raise subprocess.CalledProcessError(p.returncode, cmdstring, "\n".join([err, out]))