Remove `str = unicode`
Fixed incorrect usage of unicode in environment dictionary
Fixes #188
Fixes #193
Replaced `str` with `text_type`
Merge pull request #194 from dhirschfeld/unicode-bug

Unicode bug