Currently, the connection is established via unix socket files. It would be nice if this library would also support connecting to HAProxy over TCP as well. :)
[EDIT]:
URLs might be a good way on how to define how it connects.
hap = haproxy.HAProxy('unix:///var/run/haproxy.sock') # via unix socket
hap = haproxy.HAProxy('tcp://127.0.0.1:1937') # via TCP