circuit breaker pattern python example