added special patterns to Python API