modify revisions and incorporate additional Python changes