Error trying to send user inputs via rhino.compute and python

Hello!
I’m facing the following problem when trying to send numbers via rhino.compute to be fetched with Get number components in a Grasshopper definition. Rhino.compute is running on the local host, but the Grasshopper calculation is not getting updated.
I’m applying the following steps in a python code and getting the error from below.
What am I missing? Thanks.

Steps:
compute_rhino3d.Util.url
gh_def_path = r"C:\path\to\your\file.gh"
gh_data = gh_file.read()
result = gh.EvaluateDefinition(gh_data, inputs)

Error while calling Rhino Compute: startswith first arg must be bytes or a tuple of bytes, not str
P.S. I’m not using ‘startswith’ method directly…

Thanks a lot!