find . -name *.pyc -delete

reference: github