Remove dead code

1) If we have docstring we don't need "pass"
2) check for isnstance of type is useless

Change-Id: I87ed3a9d073f115cf47cb3419916549d8afd808b