Python: Display the download percentage of a file