Php Return Unique Values Array Definition In Python