def co_dumpf(s,f):
    """similar to co_dumps() but instead of returning the string, writes
    the pickled object to an opened file(f) to be retrieved with co_loadf()"""
    
    co = compile(s,'<string>','exec')
    co_tup=[co.co_argcount,co.co_nlocals, co.co_stacksize,co.co_flags,
    co.co_code,co.co_consts,co.co_names,co.co_varnames,co.co_filename,
    co.co_name,co.co_firstlineno,co.co_lnotab]
    pickle.dump(co_tup,f)
similar to co_dumps() but instead of returning the string, writes
    the pickled object to an opened file(f) to be retrieved with co_loadf()
recipes/Python/212565_copickle__module_serialize_code/recipe-212565.py