状态机框架和lliteerate python