Python: support get pos, parents and relations