<div id="comment:0"></div> We should prepare moving to Python3. Execute ``` 2to3 -f has_key -f except -f idioms -f ne -f raise ``` for each *.py in sage/algebras. See http://docs.python.org/library/2to3.html#fixers for meaning of the parameters. --- Apply [attachment: trac_12461.patch](https://github.com/sagemath/sage-prod/files/10654783/trac_12461.patch.gz) and [attachment: trac_12461_2b.patch](https://github.com/sagemath/sage-prod/files/10654785/trac_12461_2b.patch.gz) to the Sage library repository. Depends on #12484 Component: **misc** Author: **André Apitzsch** Reviewer: **David Loeffler** Merged: **sage-5.0.beta11** _Issue created by migration from https://trac.sagemath.org/ticket/12461_