def children(ppid):
 return [p.pid for p in psutil.Process(ppid).children()]

def children ( ppid ) : return [ p . pid for p in psutil . Process ( ppid ) . children ( ) ]
decorator for benchmarks that require a list of root children .