Rearranging to take account of multiple pythons