get_url_* functions will return None when error occurs.
Output url error info when needed.
raise error when get file size from url failed.
fix syntax warnings.
update user agent info.