Parliamentary Cycles and Party Switching in Legislatures