Fixed pyflakes warning about unused variable
Fixed pyflakes warning about unused variable
Fixed pyflakes warnings about redefined variables