Updated the python script.Tested with 5 picops.