Changed on_success/on_failure example to use curly braces instead of brackets.

I think there is a syntax error in the readme file. Lambdas are using brackets instead of curly braces. I simply copy/pasted the example from the linked gist to the repo's readme file..