fix deprecation warnings (use [] instead of {})
Merge pull request #60 from tanmaykm/tanmaykm

fix deprecation warnings in 0.4