delete unused import and variable. conform to the PEP 8 style guide