Can I control Speedify programmatically?

Yes, Speedify has an open-source Python library (speedify-py) which lets you control Speedify from your Python 3 scripts.

To learn more, read the introduction to speedify-py.