def _create_client(self, user):
    token = os.getenv(TOKEN_NAME)
    if not token:
      raise ValueError(("Environment variable {0} needs to be set to a GitHub "
                        "token.").format(token))
    client = github3.GitHub(username=user, token=token)

    return client