fix jenkins build. ignore some flake8 errors. delete __del__ method competely.