python and java code  updated
save file