thanks for your input... well I just find out that modifying environment through ksh call is not possible (can't get the new evironment back to python). I think the best thing to do is to translate all my ksh to pure python... I thought that I could re-use some stufff, but I guest I'm going to translate everything...