implement get_parent() for objects

Signed-off-by: Max Sikström <msikstrom@op5.com>