Preparations for multiple Python processes.
Better get-pids function.