def hmac_sha1(base_string, hmac_key):
    '9.2.  HMAC-SHA1'
    hash = hmac.new(b(hmac_key), b(base_string), sha1)
    return hash.digest()
9.2.  HMAC-SHA1
def hmac_sha1(base_string, hmac_key):
    
    hash = hmac.new(b(hmac_key), b(base_string), sha1)
    return hash.digest()