Remove .pyc files, fix template folder