fixed bug when handling url response
Merge pull request #1 from abika/master

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