title: python-xmpp received message
body: <p>I wrote application with xmpp. It  sending message using gtalk. I want to print received message. How can i do? My application short code as follows.</p>
  
  <pre><code>def process_message():
      client = xmpp.Client('gmail.com')
      client.connect( server=('talk.google.com',5223) )
      client.auth(user,passwd, 'botty')
  
      to = raw_input("to: ");
      if client:
          message = raw_input("message: ")
          client.send( xmpp.Message( to,message ) )
  
  if __name__ == "__main__":
      user = raw_input("User: ")
      passwd = getpass.getpass("Pass: ")
      process_message()
  </code></pre>