master_poets = {

    "Romantic": {
        "atts": {
            "jump vel": 1,
            "bounce": 1,
            "elastic": 1
        },
        "<NAME>": {
            "visions": True,
        },
        "<NAME>": {
        },
        "<NAME>": {
            "size": .4,
        },
        "<NAME>": {
        },
        "<NAME>": {
            "jump vel": 0,
        },
        "<NAME>": {
        },
    },
    "Victorian": {
        "atts": {
            "jump vel": 1.5,
            "bounce": 1,
            "elastic": 1
        },

        "<NAME>": {
        },
        "<NAME>": {
        },
        "<NAME>": {
            "accel": 4,
        },
        "<NAME>": {
        },
        "<NAME>": {
        },
    },
    "20C": {
        "atts": {
            "jump vel": .1,
            "bounce": 3,
            "elastic": 4
        },
        "<NAME>": {
            "elastic": 5,
        },
        "<NAME>": {
        },
        "<NAME>": {
            "gas": True,
        },
        "<NAME>": {
            "jump vel": 3,
        },
        "<NAME>": {
            "do not go gentle": True,
        },
        "<NAME>": {
        },
        "<NAME>": {
        },
        "<NAME>": {
        },
        "<NAME>": {
            "jump vel": 0,
            "accel": .1,
        },
        "<NAME>": {
            "ground factor": 50,
        },
        "<NAME>": {
            "mad jack": 5,
        },
    }
}


def get_all_poets():
    poet_list = []
    for group in master_poets:
        for poet in master_poets[group]:
            if poet != "atts":
                poet_list.append(poet)
    return poet_list


def find_poet(poet):
    poet = poet.title()
    for group in master_poets:
        if poet in master_poets[group]:
            att_dict = master_poets[group][poet]
            for att in master_poets[group]["atts"]:
                if att not in master_poets[group][poet]:
                    att_dict[att] = master_poets[group]["atts"][att]
            return group, att_dict
    raise Exception("Poet: " + poet + " does not exist.")
