search_fun1 is for variables with "path" as an attribute (topics); search_fun2 is for variables with "paths" as an attribute.

I could (a) rename these functions and (b) apply them programmatically using the topic_tools.multipath_kinds constant.