Welcome! Formatting your python code like the post here describes would make it easier to follow.
I think you just need to have the ‘reco’ function ‘return’ the suggestions being printed out. That is, at the end of your function code, convert your suggestions list into a string and return that.