class test: def getname(name): print 'hej ' + name g = test() g.getname('arnold')