https://github.com/pantsbuild/pex May or may not be useful. Reference: https://github.com/lineageos4microg/update_verifier/issues/2