added a hash + cmp method to the base pycms mixin class