Get size of a file before downloading in Python,"open(filename, 'rb')"