syntax fix of list
fixed pyflakes issues