changed indentation, added findpath

give findpath an object and a list of target endpoints, it will return a
list of pson paths for all occurences of the endpoint.
one line