Python script to get data average.