Updated lireg.py script.