BUG: add hashing protocol to constraints for python 3.x.