Python class for handling supply and use tables