Some fixes to lamda.py
Some fixes