updated download function for req
updated downloads function for requests1.x and python3