added the python pattern generator/classifier