This:
>>>class some_class(object):
... def beep(self):
... print 'beep'
>>># passing class as a parameter
...def do(cls):
... inst = cls()
... inst.beep()
>>>do(some_class)
beep
Also, sklearn is amazing - well documented and really easy to use.