Example in python for using 0mq with the Bitcoin daemon.