Indeed it'd be better to use only

    from autotest.client import utils
    ...
    utils.get_children_pids