In logpuzzle.py replace wget2() with download_file().

Reference
http://www.techniqal.com/blog/2011/01/18/python-3-file-read-write-with-urllib/