def spawn_session(name: str, kubeconfig_location: str, server: libtmux.Server):
    if server.has_session(name):
        return
    else:
        session = server.new_session(name)
        session.set_environment('KUBECONFIG', kubeconfig_location)
        session.attached_window.attached_pane.send_keys('export KUBECONFIG={}'.format(kubeconfig_location))
def spawn_session(name: str, kubeconfig_location: str, server: libtmux.Server):
    if server.has_session(name):
        return
    else:
        session = server.new_session(name)
        session.set_environment('KUBECONFIG', kubeconfig_location)
        session.attached_window.attached_pane.send_keys('export KUBECONFIG={}'.format(kubeconfig_location))