rm unused vars reported by pyflakes
Merge pull request #4731 from hulu/rm-unused-vars-pyflakes

remove some unused vars reported by pyflakes