pylib: more fixes in relationship mappings

add some one-to-many relationship to the attributes