from collections import namedtuple

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

fields0 = ["x", "y"]
fields = fields0
nt = namedtuple("name", fields)