South Africa bowl Australia out for 167