AALpy, an open-source automata learning library in Python, has added a generalized state-merging approach for passive learning.The library offers advanced algorithms for different automaton types, including deterministic and probabilistic automata.The new addition allows for a flexible implementation of the red-blue framework by using a common internal representation for various automaton types.Implementing state-merging algorithms with AALpy is simplified, requiring minimal effort for defining compatibility criteria and scoring.