python3: Update for metaclasses

Use six.with_metaclass to create a new class with
a base class base and metaclass metaclass.

Change-Id: Id1e70f8cae0ac3dd075157f57d41a02b15e655f4
Signed-off-by: Chuck Short <chuck.short@canonical.com>