def METHOD_NAME(self, command, input):
    popen = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
    (stdout, stderr) = popen.communicate(input.encode())
    return stdout.decode()