Being new to Python all that code was way over my head, but why isn't f() defined as: def f(self): print 'An Item' ?? > class Item: > def f(): print 'An Item'