circuit breaker python example