Sending XMPP messages from RaspberryPi GPIO events