Ie., authentication function can be nested inside the actual function.

This only works for functions and not methods of a class. Thus, code could be enhanced
to allow it to work for MethodType as well as FunctionType. Method that needs to be
changed is process_auth() and it simply needs to track through im_func to get to the
func_code member.