fix some python mode bug and add google translate