This function sends a google hangouts message to the recipient in the EMAIL variable.
It works in the following case where the email in inline with no quotes.
import os
EMAIL='in06khattab@gmail.com'
os.system('sudo echo "jjj" | sendxmpp -v -t in06khattab@gmail.com') #send hangouts message
However, when I insert the variable in its place, it doesn't send. There are no error message and the debug appears to be sending correctly, but I think it is sending to 'in06khattab@gmail.com' rather than in06khattab@gmail.com. So it may be including the quotes,
os.system('sudo echo "jjj" | sendxmpp -v -t EMAIL') #send hangouts message