refresh interface and delete some pyc