def METHOD_NAME(process_name):
    """
     Find a process by its name and returns its PID. Child processes are excluded
     Parameters
     ----------
     process_name : :obj:`str`
         The name of the process that must be found.
    Return
     ----------
     PID of the process if found, False if the process is not found
    """
    for proc in psutil.process_iter():
        try:
            if process_name == proc.name():
                parent = proc.parent()
                if parent.name() != process_name:
                    return proc.pid
        except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):
            pass
    print("Process ", process_name, " not found")
    return False