Use six.string_types for python 2.x

When using `from __future__ import unicode_literals` in combination with pyes 0.99.2 and python 2.7 I got some interesting results this PR fixes these problems