code: def pyc2py(filename):
      
      if re.match(".*py[co]$", filename):
          if PYTHON3:
              return re.sub(r'(.*)__pycache__/(.+)\.cpython-%s.py[co]$' % PYVER,
                            '\\1\\2.py',
                            filename)
          else:
              return filename[:-1]
      return filename
docs: Find corresponding .py name given a .pyc or .pyo