Create consistent_hash.py

This class is an adaptation Amir Salihefendic class