dumps core on Irix5.2 if foo is a dynamically-loadable object. i suspect any other dlopen() type platform will do the same.
dlclose() is never called in the python source code, for one...