albums_today = ['album1', 'album2', 'album3']
albums_yesterday = ['album2', 'album1', 'album3']
D = dict((k, v) for v, k in enumerate(albums_yesterday))
dict((k, D[k] - v) for v, k in enumerate(albums_today))
Fast algorithm to calculate delta of two list