Ignore .idea folder from PyCharm
Replaced "type() is" by "isinstance()"