 <p>In Python, you can use """ (triple-quoted strings) to embed long runs of text data in your program.</p> <p>In your case, however, don't waste time on this.</p> <p>If you have an object you've pickled, you'd be much, much happier dumping that object as Python source and simply including the source.</p> <p>The <code>repr</code> function, applied to most objects, will emit a Python source-code version of the object. If you implement <code>__repr__</code> for all of your custom classes, you can trivially dump your structure as Python source.</p> <p>If, on the other hand, your pickled structure started out as Python code, just leave it as Python code. </p>