def loadSmilesSDF(fileName):
    """
    Takes in sdf file with smiles tag and compiles a list of smiles

    Input -
    fileName : the name of the sdf file e.g. "myfile.sdf"

    Returns -
    output : List of smiles strings
    """
    with open(fileName, 'r') as f:
        lines = f.readlines()
        output = []
        for index, line in enumerate(lines):
            if '<Canonical_Smiles>' in line:
                output.append(lines[index+1].strip('\n'))

    return output