Inherit from object to make this python2 compatible