def my_expiring_groups(self):
        now = datetime.utcnow()
        groups = self.session.query(
            label("name", Group.groupname),
            label("expiration", GroupEdge.expiration)
        ).filter(
            GroupEdge.group_id == Group.id,
            GroupEdge.member_pk == self.id,
            GroupEdge.member_type == 1,
            GroupEdge.active == True,
            self.enabled == True,
            Group.enabled == True,
            GroupEdge.expiration > now
        ).all()
        return groups
Vec([10,20,30,40,50]).ratfit(5) evaluates to (10*x**2 + 20*x + 30) / (40*x**2 + 50*x + 1) at x=5.
dataset/ETHPy150Open dropbox/grouper/grouper/model_soup.py/Group.my_expiring_groups--crossover with--dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/matfunc.py/Vec.ratval