bugfix in lookup(): handling response of urlopen()

fixed a bug in handling the URL response probably due to a change in the sb lookup API.
All tests pass now.