circuit breaker design pattern python