If your country is in a place where you don’t think banning felons from holding elected office is good because you are worried that the legislative branch will weaponize the judicial branch to stop their opposition from running, then I’d suggest that the problem isn’t one that laws can fix
Right up until we have an Arch Duke situation