imported python utility for calculatin average values