This will throw type-error if <code>l</code> happens to not be set, it will try to do <code>int(None)</code>.  Suggest adding a default value or doing a <code>l = int(params['l'])</code> instead.  In this case, params class will through exception saying <code>'l'</code> is a required test parameter - helpful in debugging.