Implementing logging; AMEND THIS COMMIT LATER
Use shutil.copyfileobj instead of curl
Merge last 2 commits