Change eras from a dict to a simple python class which contains all the eras