Python bajty do megabajtów

print(f"{os.path.getsize(filepath)/float(1<<20):,.0f} MB")
Attractive Alpaca