[dbmanager] Fix python error