Replace basestring with string_types (mostly), refs #38.
ares.pyx: add 'cdef basestring'