Sage code listings for LaTeX improved