Added list_dbs api + test + Python compatibility fix.