storage.py: add methode 'dev_id' and update thrift