I\'ve got a list of things, of which some can also be functions. If it is a function I would like to execute it. For this I do a type-check. This normally works for other ty
import types if type(f) == types.FunctionType: print 'It is a function!!'