Use py3k compatible urllib with own User-Agent header
Write readable content into temp file in binary mode