Python tools for pattern recognition.