print unique elements of an array in python