Stats model or any other machine learning python packages for doing sequence classification(that can be multi class) and sequence prediction (Both next step and regression).
PS : Input data will be n number of sequences with their respective target (class/regression)
Also each sequences having finite number of events like E1,E2 ..