Implementation of the client-based flag -changed- for python clients (native and interfaced). Plus some cleanup.