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