Controlling an OSC client via Python is super easy thanks to the python-osc module. You install it via pip:
thingthohmmmmmm:~ henszimmerman$ pip3 install python-osc
Downloading/unpacking python-osc
Downloading python-osc-1.4.1.tar.gz
Running setup.py (path:/private/var/folders/wz/7t75jnps3m5dvmrqd4kwpglh0000gn/T/pip_build_henszimmerman/python-osc/setup.py) egg_info for package python-osc
Installing collected packages: python-osc
Running setup.py install for python-osc
Successfully installed python-osc
Cleaning up...