Yeah that struck me as odd. It's more like a Python library or something.

It’s a dsl not a library. The kernel launch parameters and the ast walk generate ir from the Python.