Could you please enable debugging and check what parameters are passed to the _post() function that is called by upsertVertex()?
Both pyTigerGraph code and the underlying Python and CPython functions use double quotes to enclose sting (as per the JSON standard), so there should not be single quotes in the payload.