class Song:
    """The class to store the details of each song"""
attsToStore = 'Name', 'Artist', 'Album', 'Genre', 'Location'

def __init__(self):
    for att in self.attsToStore:
        setattr(self, att.lower(), None)

def setDetail(self, key, val):
    if key in self.attsToStore:
        pass
Is using eval in Python a bad practice?