Add .pyc and .swp files to .gitignore.