Apply six for metaclass

__metaclass__ cannot be used in python3.
six be used in general for python 3 compatibility.

Change-Id: Iad6620fb11f275ec91421f4814c5e67c2b263333
Merge "Apply six for metaclass"