generator: Added docstring to scan_module_vars()