remove unused lines that break python 3.x