add py to calc ub