Oh, perhaps shadowing "type" is a bad thing. Again, I'm still pretty new to Python. But I do prefer whole words to abbreviations. So perhaps, tab_type.