I am looking to write a Python script to detect anomalies in google analytics data when sales go down or up. What's the best way to implement it on Google Cloud and the algorithm for it. Thanks.