Python Structure Like Tuple Cpp Performance