fixes for models and added .pyc files to gitignore