working tweet python code