small fixes to pyrt.find_intensity