Python Check If Array Of Structures In Python