in sparkey/__init__.py [0:0]
def _to_str(b, name): if b is None: return None if type(b) != str: raise SparkeyException(name + " must be a string") return b