Replace Unix command shell-out with python calls in update command (fixes #145)