Sqlalchemy - switch from SQL query to Objects/classes