Added classes to python pattern

I've been using the plugin for some time and found it more convenient that way.

Feel free to reject if it doesn't fly for you :)