Update code for PyTables 3