python vlc callback inside class

I’ve found it hard to find a solution for having a callback method inside a class that you are using. Here’s an example how to do it though.