python: bugfix for single ' or " in triple quotes