Thanks Jeff,
the printing of variables created inside the function always worked for me, but not the returning. But I guess it comes down to 'generator functions', their special return - behavior, and that python is not matlab.
Have to learn a bit more about object oriented programming before my next post
Am using global variables that I change within functions now rather than trying to return something from a function, and that works alright.
thanks anyway,
starbug