Statistics Function In Python With Parameters