a little practice for converting latex to python