Move toward python 3/2 compatible metaclass

Change-Id: Ia7e07a7530e26c388c5da3e362510233b6a65aa6
Fix print statements for python 2/3

Change-Id: Ic05af4d5defe26b729bd7dda3f04b790509bb155
Merge "Fix print statements for python 2/3"