don't assume python, ask the kernel instead