It might be a bit more readable to use a hanging indent here:

    response = helpers.communicate(
        runner["host"], int(runner["port"]), "ping")