Instead of ``` ``print_mols'' ```, do ``` ``print_mols`` ``` or ```:meth:`print_mols```` - these are the reST ways, you wrote LaTeX.  Learning markup languages is a bit tedious, though...