def hash(symbol, hash_type='sha1'):
    """ create a hash code from symbol """
    code = hashlib.new(hash_type)
    code.update(str(symbol).encode('utf-8'))
    return code.hexdigest()
def hash ( symbol , hash_type = 'sha1' ) : code = hashlib . new ( hash_type ) code . update ( str ( symbol ) . encode ( 'utf-8' ) ) return code . hexdigest ( )
create a hash code from symbol