SQLAlchemy nested sets mixin