make book inherit from object which is a difference for python 2.x