Bug fix in atexit function
Started working on API for merging pytables files.