def foo(ip,port,mess, ch):
  stopcomm(ch)
  exitall()

if callfunc == 'initialize':
  recvmess('127.0.0.1',<messport>,foo)
  sleep(.1)
  sendmess('127.0.0.1',<messport>,'hi')
  sendmess('127.0.0.1',<messport>,'Hello, this is too long of a message to be received in such a short time')
  print "hi"
