Fix migration to pygit2 0.17.3