title: Remove doc strings but not asserts from compiled CPython
body: <p>I want to remove doc strings from a Python program but leave asserts (and <code>__debug__</code> sections) in.  I have been using the -OO flag to generate .pyo files but according to <a href="http://docs.python.org/tutorial/modules.html#compiled-python-files" rel="nofollow">the documentation</a> that removes both asserts and doc strings.</p>
  
  <p>I'm using CPython 2.7.</p>
  
  <p>Clarification: I'm removing the docstrings as a cheap obfuscation method.  Management made that decision and I think whether that is a useful thing to do is outside the scope of this question.</p>