No, not for variables. Variables are just references to arbitrary python objects, and if you can find the variable, you have found the function, class, or the module it is defined in.
I suspect you wanted to know where python objects are defined in instead; for many objects that can be determined from the .__file__ attribute of the object. For classes, you'd have to traverse back it's module first, for methods, traverse to it's function, for functions, find it's code object, for code objects, use their .co_filename attribute, etc.
Or use the getsourcefile() function to automate that process:
>>> import inspect
>>> inspect.getsourcefile(inspect.getsourcefile)
'/usr/lib/python2.6/inspect.py'
printsucceeds? Did you grep for the variable name? Is this in a function, a class, a module?