def METHOD_NAME(cmd):
    p = subprocess.Popen(
        cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
    out, err = p.communicate()
    if p.returncode == 0:
        return out.decode('utf-8')
    else:
        return None