Replace Sum

Depreciation: replaced Sum with lp.sum, see:
http://trac.sagemath.org/13646