How To Select Multiple Columns With Sqlalchemy Orm In A Generic Function