Python callbacks library using decorators.