Added classes to python pattern