fixed bug with error message
use dict() constructor instead of dictionary comprehension (py2.6)
add .idea to git ignore