attaching icon to the item of module

Hello

I am making auto-completion using wxPython.

Is there a way to distinguish the items of module? inspect module can
check if the item is class, function, method. but what if the item is
attribute, property, variable.

I am not sure what is the difference between attribute and variable.
but in Editra source, it distinguishes attribute, function,
class. .etc..
I don't know how this was made possible.

Wonjun, Choi