http://trac.sagemath.org/sage_trac/ticket/2544