Improved .gitignore file

Improves the .gitignore file to ignore:

1. Mac OSX related files
2. Python compiled and other files
3. PyCharm IDE files