#107 Fix for python2

Cannot user str in python 2 while working on unicode.
It is better to use the return type's lower/uper function directly