Add .gitignore file to ignore .pyc and .swp files.