Fixed L to work in python.