...
This script is intended to be called by the FreeRADIUS Rlm_python module, which, in the intended configuration, calls the its post_auth(attr) function passing a tuple of tuples containing the relevant RADIUS attributes and their values as the 'attr' argument.
...