Identiftying Trend Change Python