git_remote_helpers: allow building with Python 3