added conversion of Python strings to TStr