That's exactly the way to go. In my case, I'm using cx_Oracle to connect from Python to Oracle and the same exact code runs on Windows, Linux, Solaris and soon on AIX. Grig