Shell Script Get Pid In Python