'Return a string that represents hash of base_str.
Returns string in a hex format.'

def _get_hash_str(self, base_str):

    if isinstance(base_str, six.text_type):
        base_str = base_str.encode('utf-8')
    return hashlib.md5(base_str).hexdigest()
