Upstream python libraries for terasaur