How would you implement a function to calculate the average of a list of numbers in Python for a Checkr analysis?