Does parse_value make a mistake with entities?
The following code produces a wrong result:
project = db.Record(name=name)
project.add_parent(name=dm.Project)
experiment = db.Record()
experiment.add_property(name=dm.Project, value=project)
This creates an entity where the value is a string with the name of project
.