some restructuring in python read API (now it also can use the types node / connection / reference)