pycodestyle warned variable name l was ambiguous