def METHOD_NAME(self, ip, port, cmd):
    cmd = 'echo %s | nc %s %d' % (cmd, ip, port)
    out = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
    stdout, stderr = out.communicate()
    return stdout.split(':')[-1].strip()