update from home : solve python code