結果 : create a pattern object in python