Replace <> to != for python 3 compatibility
Remove has_key, which is removed in python 3
Fix unicode handling around downloader module