def my_func(data, stat):
    print('Data is %s' % data)
print('Version is %s' % stat.version)

@client.DataWatch('/path/to/watch')
def my_func(data, stat, event):
    print('Data is %s' % data)
print('Version is %s' % stat.version)
print('Event is %s' % event)
How to add children node data update watch in Python using kazoo package