libgit2: use peel() in the pygit2 example

get_object() is deprecated, and we now have the common peeling mechanism
which we can use to get to the commit more elegantly.