[python] add onScanStarted/onScanFinished and deprecate onDatabaseScanStarted/onDatabaseUpdated