class Position(list):

    def __init__(self, x=0, y=0, z=0):
        super(Position, self).__init__((x, y, z))
x = property(lambda self: self[0], lambda self, value: self.__setitem__(0,
    value))
y = property(lambda self: self[1], lambda self, value: self.__setitem__(1,
    value))
Create properties using lambda getter and setter