Namedtuple support

Finally namedtuple support is here :sparkles: 

It does not work in Python 2.6, because back then the namedtuple template was kept inline. I think we can ignore that though.