add .gitignore files
Python parser: fix compatibility with Python 3.x