Also you can pay attention to urn encoded to base64. In Python, function base64.urlsafe_b64encode returns value with padding symbols "=" on the end. For some reason Autodesk can't handle it, so you have to manually .strip("=") it