Php Loop Over Array Of Structures In Python For All Selected Lines