warning: I don't know any python programming but I may help you a little bit?
As per your code example it seems that the only thing you are missing is the b2ContactListener which will tell you when two fixtures collide:
Now, we want Box2D to tell us when the contact state changes. Make a
subclass of b2ContactListener and implement the