removed unnecessary lines that broke python3 compatibility