采用python实现bacula的console