python code for xml and twitter data