In Python 3, basestring is not defined

Used the solution found here: https://github.com/oxplot/fysom/issues/1