edited lpfinder.py