upload the python code of the relationship