change hashbangs to python2
add .gitignore
fix compatibility with PyX 0.12.1