Probably you will have to modify these two lines.
Python 2.7
hashed = hmac.new(decoded_secret, sig_block, sha1) sig = hashed.digest().encode("base64").rstrip('\n')
Python 3.x
hashed = hmac.new(decoded_secret, sig_block.encode(), sha1) sig = base64.b64encode(hashed.digest()).decode('utf-8')
Hi@johnglick,
Perhaps you might find it useful to use 2to3 - a python tool to automate code translation:https://docs.python.org/2/library/2to3.html
Else this doc may also be helpful to you:https://docs.python.org/3/howto/pyporting.html