More progress on locfdr.py