adding difflib and some other updates