Once you’ve opened up your WWT viewer, you can control nearly every aspect of it programmatically with pywwt.