Added pattern concatenation in cython