2to3 minor fixes on model and collection, next -> __next__ for cursor and __metaclass__