added .gitignore

ignore *.pyc files

added .hgignore entries