@command
def cleanup_pyc(path, verbose=False):
    if verbose: print 'Removing files:'
    for dirpath, dirnames, filenames in os.walk(path):
        for filename in filenames:
            if filename.endswith('.pyc'):
                f = os.path.join(dirpath, filename)
                if verbose: print '  %s' % f
                os.unlink(f)
dataset/ETHPy150Open jmohr/compago/examples/real_world_example.py/cleanup_pyc/original