Fix a minor typo in the README

Hey there,

First of all, great job!

This PR just add a missing `def` keyword in one of the examples.