do the diff in python