Changes from pykaldi transfered