Artist.from_cached(cd)

for k,song in s.iteritems():
	for v in song.resp:
		if v.__class__ == str:
			bad = v
			print "FOUND."





# AFTER THANKSGIVING
from project.store import fread, fwrite
from project.echonest import CachedData, Artist

for i in xrange(0,5):
	# Read in file
	a_dict = fread("data"+str(i)+".pkl")

	# Generate cached data object
	cd = CachedData(a_dict)

	# Find out artist info
	Artist.from_cached(cd)

	# Write to file
	fwrite(cd, "processed"+str(i)+".pkl")

	# Null for garbage collect
	cd = None
# AFTER THANKSGIVING
from project.store import fread, fwrite
from project.echonest import CachedData, Artist

for i in xrange(0,5):
	# Read in file
	a_dict = fread("data"+str(i)+".pkl")

	# Generate cached data object
	cd = CachedData(a_dict)

	# Find out artist info
	Artist.from_cached(cd)

	# Write to file
	fwrite(cd, "processed"+str(i)+".pkl")

	# Null for garbage collect
	cd = None

from util.progress import Progress
prg = Progress(len(cd.data_dict))
for v in cd.data_dict.itervalues():
	totallen = len(v.songs)
	for k,v in v.songs.iteritems():
		v.get_lyrics()
		prg.increment(1./totallen)

totallen = len(alk)
i=0
for v in alk.itervalues():