[python] add onDatabaseScanStarted/onDatabaseUpdated for backwards compatibility
[python] rename variables for consistency