Python input Latex output