PEP8 _cleanup method.