I have a list like
[\'hello\', \'...\', \'h3.a\', \'ds4,\']
this should turn into
[\'hello\', \'h3a\', \'ds4\']
In python 3+ use this instead:
import string s = s.translate(str.maketrans('','',string.punctuation))