remove .pyc file and unused code