Just curious whether this could be done in a nice way. The answer appears to be no. I do not recommend actually doing this.
To define aliases, just assign your function to extra variables, e.g. :
def mean(lst):
return sum(lst) / len(lst)
avg = mean
average = mean
Idea to use inspect taken from here : https://mail.python.org/pipermail/python-list/2013-November/659992.html
Inspired by https://martinfowler.com/bliki/HumaneInterface.html