Updated JSON calls to work with Frodo.

Updated code to pep8 coding style.
Fixed script error if Last.fm returned zero records.