Executes a command via ssh and sends back the exit status code.

def RunCommandOnHost(cmd, hostname, ssh_key):
  """ Executes a command via ssh and sends back the exit status code. """
  hostnames = [hostname]
  results = RunCommandOnHosts(cmd, hostnames, ssh_key)
  assert(len(results) == 1)
  return results[0]