In a blender or food processor, combine the beans, shallot, thyme, lemon juice, and a pinch each of salt and pepper. Blend until smooth, occasionally scraping down the sides. With the machine running, slowly pour in the oil. Blend until the mixture is very smooth. Add a little water if necessary to thin the mixture slightly.