def urlify(s):
    """
    Turn plot title into filename for saving
    """
    import re
    s = s.lower()
    s = re.sub('[^\\w\\s-]', '', s)
    s = re.sub('\\s+', '-', s)
    s = re.sub('-(textbf|emph|textsc|textit)', '-', s)
    return s
