How did political machines influence elections?