I've worked out that I can open and close the key fine if I don't open a subkey. I've tried adding flush and close statements after opening the key and still get access denied when trying to unload.
-- http://mail.python.org/mailman/listinfo/python-list