Add .idea and .iml to .gitignore (#1764)

diff --git a/.gitignore b/.gitignore
index f436777..de4c573 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,10 @@
 # Two-trick pony for OSX and other case insensitive file systems:
 # Ignore ./python binary on Unix but still look into ./Python/ directory.
+.idea/
 /python
 !/Python/
 *.cover
+*.iml
 *.o
 *.orig
 *.pyc