Switch to new style classes in python

Change-Id: Ibab27d58d03d24c9ec6a59edec7aa42ebab9343e