Fix for Python 3 basestring deprecation
0.3.4