Using the 'is' token compares identity; this should not be used for string value comparison.
Merge pull request #3134 from jrouly/string_values

Use == instead of is for string comparison in Affinity Propagation