news python code