A new attribute name can be declared and initialized using an assignment statement:
lnpop = ln(urbansim.gridcell.population)
This is treated as an expression, which can occur in the list of expressions given to compute_variables. The value of the new alias is returned as the value of the expression if it's the last item on the list of variables and expressions.