fixed download_file() method for requests1.x, and given overwrite ability
simpler and safer file_replace() method