Added restriction for .idea inside gitignore
Fixes for some pep and code syntax