Consolidated python plugin with correct order and mode

Consolidated python plugin with correct order and mode