Average In Python Code