Since python 2.2, use of types module is not prefered way to
access the type hence it is replaced by using names of built-in
factory functions.
Change-Id: Ibdcc1ae75204f67076edab5edcffe94a9f1f1d8e
Implements: blueprint replace-types-module-with-new-style-classes