Currently, the hash value of objects is available as "hash" method (as in Ruby), but not as "hash" which would enable KLayout's objects as keys for sets for example.
A quick workaround is to monkey patch the respective object, i.e.
pya.Point.__hash__ = pya.Point.hash