Php Find Duplicates In Array In Python