from collections import namedtuple name = "name" nt = namedtuple(name, ["x", "y"])