Alterar editar a última linha Python

print("\033[FMy text overwriting the previous line.")
idk