remove some unused vars reported by pyflakes