Elements and comparator SQLAlchemy 0.9 compatibility