Update flake8 config and fix all flake errors
Don't call self._format on default value