Embed python into looker

Is there a natural way to wrap Python code to display in Looker?

The ideal dataflow for my problem is SQL DB->python-> looker, or alternatively, looker->python-> looker. I am hoping to embed a.py into lookML so that I can automate python analysis, ready to display in Looker.