google-relay.py: factor out repeated code
google-relay.py: factor out repeated code

community-ssu/telepathy-gabble,community-ssu/telepathy-gabble,community-ssu/telepathy-gabble,community-ssu/telepathy-gabble