import org.zeromq.ZMQ as ZMQ
import org.zeromq.ZMQ.Socket as Socket

context = ZMQ.context(1)

socket = context.socket(ZMQ.SUB)
socket.connect("tcp://gfa-lc6-64:9999")
socket.subscribe("")

try:
    data = socket.recv()    
finally:
    socket.close()   
    context.term()

print data    