fix python unicode length problem
Merge pull request #335 from slene/patch-1

fix python unicode length problem