# Scalars (single, literal values)
import types
def is_scalar(value):
return isinstance(value, (types.NoneType, bool, int, float, basestring))