make some modification of this python file.