Circuit breaker state transitions

Code reviewHard20 minNetflix and Amazon style

Your task

Review this Python circuit breaker. When open, after a cooldown it moves to half-open and lets calls through to test recovery.