python lib: added node query function