def __remove_pyc_pyo(fname):
 if (osp.splitext(fname)[1] == '.py'):
  for ending in ('c', 'o'):
   if osp.exists((fname + ending)):
    os.remove((fname + ending))

def __remove_pyc_pyo ( fname ) : if ( osp . splitext ( fname ) [ 1 ] == '.py' ) : for ending in ( 'c' , 'o' ) : if osp . exists ( ( fname + ending ) ) : os . remove ( ( fname + ending ) )
eventually remove .