python argsort une liste

a=list((1, 2, 3, -20))
sorted(range(len(a)), key=a.__getitem__)

output:
[3, 0, 1, 2]
IJustWannaHelp