def make_smiles_dict(filename):
    """Takes in a csv file with two columns. The first column
    would be a compound identifier name while the second is a smiles
    string for the molecule

    This function returns a dictionary where the keys are compound
    names and values are the smiles stings."""

    smiles_raw = open(filename).read().splitlines()
    smiles_dict = {}

    for line in smiles_raw:
        smiles_dict[line.split(',')[0]] = line.split(',')[1]
    
    return smiles_dict