added PatternModelOptions to python API