I can access a python function\'s attribute inside of function itself by below code:
def aa(): print aa.__name__ print aa.__hash__ # other simlia
You can at least say self = bb in the first line, and then you only need to change that line when you change the function name, instead of every other reference.
self = bb
My code editor highlights the variable self the same way it does for classes, too.
self