Python script to print tooltip value when mouse is over a property
For recent Blender builds (daily builds), you can do this using shortcuts.

See: https://www.blender.org/manual/interface/buttons_and_controls.html#common-shortcuts




Ctrl-Shift-C - copy the data-path for this property(also available from the right-click menu).Useful when writing drivers or scripts.
Ctrl-Alt-Shift-C - copy the full data-path for this data-block and property.


Warning: This is typically bad practice when scripting, in most cases its best to access values based on bpy.context, accessing via string lookups in bpy.data is error prone since the user may rename objects.