Create namedtuples outside of class and create an instance of them in the class (this increases performance drastically and is probably the right way to do it).