@kjm upip is meant to install (micro)python packages on a micropython device. So it downloads and extracts micropython packages. You have to tell yourself whether it is useful for you. But at least it is a good example. Paul is an excellent Python specialist and programmer. There is a upip.help() telling how to use it. And upip.tarfile is, as far as I understand it, the tarfile extractor.