Why am I writting this?
Last year I made an article for starters on using embedded python. Later, it started a little discussion on how to return values with python and I found some interesting observations that are worth writing a little article. Also, hopefully I can reach more people by writing this.
Possible situations
There are two things you'll need to care about when returning a value with python. The first is the type you're trying to return and the second is where you're returning it.