Updated system for converting namedtuples to dictionary. Now any namedtuple can be passed in and create the corresponding dictionary.