how to calculate average of numbers in list in python