Backbone like events in Python