Well I just tried str() an it works with no errors (so far;-)). This is where python is embedded in the app, so I import 3 things: sys,poss,and PossDevice. poss is the C++ application, PossDevice is another layer between the C++ app and the running scripts. PossDevice also imports poss and sys. regards