[object-relations] Fix some errors in create_object_relations.py, but there is still an error with the http request