With a federal election looming, a visit to Perth by both the prime minister and the opposition leader leaves little doubt there's a lot at stake in Western Australia.