In JavaScript each function has a special arguments predefined objects which holds information about arguments passed to the function call, e.g.
arguments
It doesnt exist as is in python but you can call locals() as the first thing in the function and at that point it should only have the arguments
>>> def f(a,b): ... args = locals() ... for arg, value in args.items(): ... print arg, value ... return a*b ...