Add .gitignore and remove files produced by Python.