I went and researched this before reading the link, and found a slightly different solution than the author. By taking advantage of python's 'tarfile' module, it was easy to create a (us)tar-compatible header. My solution is here: https://gist.github.com/jepler/f86255a6e054d9b6ca540d0c7afe1...