Remove .pyc files and add .gitignore

Adds usual Python .gitignore file taken from https://github.com/github/gitignore/blob/master/Python.gitignore.