add python def sort macro to .emacs