Python based State Machine which can track multiple items in each state and manage their transitions.