Add pyc files to hgignore
Check if it's a mercurial repo first