Fixing converstion error #2777, "Expected basestring got str"

This might be due to a cython change.