add mega.py and update .gitignore