t.insert().execute([{'number': randrange(100)} for x in range(30)])
for row in select([func.avg(t.c.number), func.np_var(t.c.number)]).execute():
    pass
How can i write my own aggregate functions with sqlalchemy?