def save_pyc(filename):
 cfile = ('%sc' % filename)
 py_compile.compile(filename, cfile=cfile)

def save_pyc ( filename ) : cfile = ( '%sc' % filename ) py_compile . compile ( filename , cfile = cfile )
bytecode compiles the file filename .