PortDpidPair = collections.namedtuple('PortDpidPair', ['port', 'dpid'])
global_learning_table = collections.defaultdict(collections.namedtuple(
    'PortDpidPair', ['port', 'dpid']))
Creating a table in python