I guess the answer means : you don't need to compile a python program to nro format because there's a python interpreter for the Nintendo Switch.
If you want to compile a homebrew to nro format using python, that would be harder. it would require a development environment like devkitpro is doing to compile c/c++ to nro format. using python as compiler/linker to compile python sources, I know it's possible for ARM processors, no idea for switch chipsets. you'll have to learn how Tegra is working, and create a tool to convert python to native tegra language.