I didn't check the MQ client error logs. I had to set the dynamic library path to get my python program running.
export DYLD_LIBRARY_PATH=/opt/mqm/lib64
All good now!