code: 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)
docs: Eventually remove .pyc and .pyo files associated to a Python script