Circuit breaker never closes

Code reviewMedium18 minNetflix style

Your task

Review this Python breaker that guards a downstream and counts failures to decide when to open.