improve python compatibility
add .gitignore for tex files