import win32com.client as com
folderPath = 'D:\\Software\\Downloads'
fso = com.Dispatch('Scripting.FileSystemObject')
folder = fso.GetFolder(folderPath)
MB = 1024 * 1024.0
print('%.2f MB' % (folder.Size / MB))
very quickly getting total size of folder