adding a clean_latex function to rwkmisc.py