Find Unique Elements In Array Code In Python For Snake