fixed AttributeError: 'list' object has no attribute 'lower'
Supplied positional arguments for Python v<2.7
Merge pull request #220 from vnitinv/f_master-AttributeError-fix

F master attribute error fix