work with BagIt packages from Python or the command line