fix some sloppiness in pyfind