def parse_ps_results(stdout):
  """Parse result of `ps` command

  Parameters
  ----------
  stdout : str
    Output of running `ps` command

  Returns
  -------
  list
    A List of process id's
  """
  # ps returns nothing
  if not stdout.replace('\n', '').strip():
    return []
  # ps returns something
  return [ int(line.split()[0]) for line in stdout.split('\n')
      if line.replace('\n', '').strip()
      ]