Let the platform that a candidate runs on be a contract with the people. When he is elected, if he doesn't do what he said in his platform contract, execution. If he is literally stopped by the opposition from a timely follow-through, so it isn't entirely his fault, life in prison immediately.
When the next person in line takes over after the first guy has been executed/imprisoned, he has a choice. Fulfill the platform contract of the first guy, be executed/imprisoned like the first guy... except if he voluntarily immediately resigns without taking office.
Same with every other person who is the follow-up person to take office as successor to someone who is executed/imprisoned/resigns. Fulfill the contract of the office you are coming into or die.
By the time they run through all the people in government, and the garbage collector resigns before he is executed, government problems will have straightened themselves out.

EDIT: Obviously, this is only a basic idea. I mean, we should add that if the elected fulfills his contract with the people, a new election is immediately mandated.