Have you tried using the requests Python library? As far as I know, it should do the job just fine. I can write the code using requests if you're interested.
If you're already using requests and still encountering the issue, then you can try using the wget module, another Python library. I can do this for you, as well.