Callbacks lets you use decorator syntax to set callbacks on methods or functions.
from callbacks import supports_callbacks
def callback():
print "Polly!"
@supports_callbacks
def target():
print "hello",
target.add_callback(callback)
target() # prints "hello Polly!"