For a client to check for messages, a call-back function is required, and client.check_msg() must be used in a loop. It appears check_msg() can provide a return of "NONE" if there are no messages.
What does check_msg() return if there are messages?