Add *.pyc and build dirs to .gitignore.