An hash-checkable Python string mixin.