Rewrite opts and pylint