Hello,
You say you want the arguments, which I understand to mean the arguments used to call the function (called or calling/outer?) but you are returning the locals() dictionary from the outer scope - is that what you want ?
The output you are getting looks very much like the locals() dictionary in the base scope of a python file, but mine is much much longer :
if __name__ == '__main__':
print locals()
{'__name__': '__main__', 'exit': <System.Action object at 0x000000000000006C [System.Action]>, '__file__': 'C:\\Users\\knapp\\AppData\\Local\\Temp\\TempScript.py', '__builtins__': {'long': <type 'long'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'Exception': <type 'exceptions.Exception'>, 'locals': <built-in function locals>, 'help': <built-in function help>, 'ImportError': <type 'exceptions.ImportError'>, 'float': <type 'float'>, 'TypeError': <type 'exceptions.TypeError'>, 'NotImplemented': NotImplemented, '__debug__': True, 'getattr': <built-in function getattr>, 'bool': <type 'bool'>, 'set': <type 'set'>, 'slice': <type 'slice'>, 'all': <built-in function all>, 'map': <built-in function map>, 'chr': <built-in function chr>, 'dict': <type 'dict'>, 'super': <type 'super'>, 'len': <built-in function len>, 'issubclass': <built-in function issubclass>, 'range': <built-in function range>, 'Ellipsis': Ellipsis, '__import__': <built-in function __import__>, 'unicode': <type 'str'>, 'Warning': <type 'exceptions.Warning'>, 'list': <type 'list'>, 'int': <type 'int'>, 'any': <built-in function any>, 'True': True, 'object': <type 'object'>, 'ValueError': <type 'exceptions.ValueError'>, 'globals': <built-in function globals>, 'str': <type 'str'>, 'hasattr': <built-in function hasattr>, 'buffer': <type 'buffer'>, 'file': <type 'file'>, 'isinstance': <built-in function isinstance>, 'False': False, 'frozenset': <type 'frozenset'>, 'NameError': <type 'exceptions.NameError'>, 'basestring': <type 'basestring'>, 'xrange': <type 'xrange'>, 'classmethod': <type 'classmethod'>, 'dir': <built-in function dir>, 'repr': <built-in function repr>, 'property': <type 'property'>, 'complex': <type 'complex'>, 'enumerate': <type 'enumerate'>, 'next': <built-in function next>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'round': <built-in function round>, 'setattr': <built-in function setattr>, 'sorted': <built-in function sorted>, 'sum': <built-in function sum>, 'unichr': <built-in function unichr>, 'vars': <built-in function vars>, 'zip': <built-in function zip>, 'abs': <built-in function abs>, 'apply': <built-in function apply>, 'bin': <built-in function bin>, 'callable': <built-in function callable>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'cmp': <built-in function cmp>, 'delattr': <built-in function delattr>, 'divmod': <built-in function divmod>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'filter': <built-in function filter>, 'format': <built-in function format>, 'hash': <built-in function hash>, 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'intern': <built-in function intern>, 'iter': <built-in function iter>, 'max': <built-in function max>, 'min': <built-in function min>, 'bytes': <type 'bytes'>, 'bytearray': <type 'bytearray'>, 'memoryview': <type 'memoryview'>, 'reversed': <type 'reversed'>, 'staticmethod': <type 'staticmethod'>, 'BaseException': <type 'exceptions.BaseException'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'StandardError': <type 'exceptions.StandardError'>, 'BufferError': <type 'exceptions.BufferError'>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'IOError': <type 'exceptions.IOError'>, 'OSError': <type 'exceptions.OSError'>, 'WindowsError': <type 'exceptions.WindowsError'>, 'EOFError': <type 'exceptions.EOFError'>, 'LookupError': <type 'exceptions.LookupError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'TabError': <type 'exceptions.TabError'>, 'SystemError': <type 'exceptions.SystemError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'None': None, '__doc__': 'Provides access to commonly used built-in functions, exception objects, etc...', '__package__': None, '__name__': '__builtin__'}, 'inspect': <module 'inspect' from 'C:\Program Files\Rhino 7\Plug-ins\IronPython\Lib\inspect.py'>, 'sub': <function sub at 0x000000000000006D>, 'main': <function main at 0x000000000000006E>}