anapickle

anapickle is a tool set for writing shell code in Python's Pickle language and for manipulating pickles to inject shell code.

The conference paper and presentation has more information.