How To Compare Array Of Strings In Python