add .gitignore and remove .pyc files