I recently tried to start learning GUI for python, and reverted back to python 2.6.4

my question:

in python 3.1.1,:
>>>import title
>>>title.class. function()
>>>running program

in python 2.6.4:
>>>import title #working fine
>>>title.class. function()
then I get this:
unbound method must be called with class...