For python3 StringTypes does not exists.