python mode changed.(unnecessary function has been removed)