Python tkinter pasando variables entre funciones

Estoy tratando de pasar el dirpath variable a la función export_data (). Los datos de exportación se ejecutan con un doble clic en un botón ubicado en un widget. ¿Por qué se imprime dirpath como:

`<Tkinter.Event instance at 0x8ade56c>` 

en lugar de la ruta real?

def export_data(dirpath):
    print 'exporting...'
    print str(dirpath)
    os.mkdir('/home/bigl/Desktop/Library')
    shutil.copytree(dirpath, output_path)

Cuando ejecuto mi código me sale el error

exporting...
<Tkinter.Event instance at 0x8ade56c>
Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1413, in __call__
    return self.func(*args)
  File "/media/LOFTUS/20130308_searchtest.py", line 44, in export_data
    shutil.copytree(dirpath, output_path)
  File "/usr/lib/python2.7/shutil.py", line 169, in copytree
    names = os.listdir(src)
TypeError: coercing to Unicode: need string or buffer, instance found

Respuestas a la pregunta(2)

Su respuesta a la pregunta