Add .gitignore files

The .gitignore file in the base directory ignores the __pycache__
directory that is beeing created.
The output/.gitignore file makes it possible to add the output directory
in the git tree and ignore all files in that directory.