remove explicit deletion of inputsDict in btc.py, update getRoot and union in users.py