There's an object set_parent function. Why is there no get_parent?

You want to be keeping track of this information yourself as you generate objects.