Fix issue with trace_cls

If we add to class attribute that is callable, trace_cls will
try to wrap it => create a lot of pain.

So trace only functions and methods

Change-Id: If34223fa7a77667f5a0875f7a7b3b4e227ef1083