Can't you use the tempfile module to generate unique names for non-existent files and directories? Take a look at http://www.python.org/doc/lib/module-tempfile.html -- it works on all supported platforms.
Grig -- http://mail.python.org/mailman/listinfo/python-list