Cooley to fill in as Australia coach in South Africa