python: add `spooler_pids` api for multi-spooler

the old `spooler_pid` api only returns the first spooler pid