def strip_comment_marker(text):
 lines = []
 for line in text.splitlines():
  lines.append(line.lstrip('#'))
 text = textwrap.dedent('\n'.join(lines))
 return text

def strip_comment_marker ( text ) : lines = [ ] for line in text . splitlines ( ) : lines . append ( line . lstrip ( '#' ) ) text = textwrap . dedent ( '\n' . join ( lines ) ) return text
strip # markers at the front of a block of comment text .