Notice the error:
'Invalid parameter type. param-index=2 param-type=list
And then the values you're putting in on index 2:
(u'url', None, [2L]
You're submitting a list, instead of single value.
Your problem is this line:
ins_id = result.inserted_primary_key
according to the docs
That solved it, thank you! I'd been struggling with this for 2 days,
awesome to move on to other things. In hindsight it seems so simple.
I posted this question on SO yesterday with no response. If you have an
account there care to make a few extra points, copy/paste your answer and
I'll