There are several alternatives to interact with a poker client, more or less difficult or sophisticated, and effective depending on what you want to accomplish.
For getting the information you could sniff the data over the network, inject your code via API hooks, read the information with screen scraping and OCR, parse the hand histories...
To emulate user actions you can programmatically perform mouse clicks and and key strokes, send messages directly to the UI components of the poker client, or even interact directly with the poker server sending it the expected information by your own(this option, as well as sniffing the data from the network to get the information, may be quite difficult since you will have to deal with (maybe private) protocols, data encryption, etc).
If you know Java, give it a try to the awt's Robot class. With it you can read pixels of the screen, get screen captures, perform mouse clicks and key strokes... I am sure that there are similar tools in Python but don't know about them.
Another higher level tool used for UI automation is Sikuli. It may be useful for your purpose.
I hope this information is useful for you.