Was Dooko really evil though?
I just rewatched Episode 2 (not yet Episode 3) and it seems like he's trying to save the Republic from the Sith, and told Obi Wan that directly. They just couldn't accept he was telling the truth about the Senate being controlled directly by the Sith, which is funny because earlier in the film Obi Wan himself is scolding Anakin for not being more distrustful of the Senate and politicians. Seems like Dooko was building an army for a coup against the Sith but the Jedi ruined it.