Replace variable "l" to "L" to be PEP 8 friendly

"l" and "1" may lead to confusion according to PEP 8.