def _is_protected_type(obj):
 return isinstance(obj, (types.NoneType, int, long, datetime.datetime, datetime.date, datetime.time, float, Decimal, basestring))

def _is_protected_type ( obj ) : return isinstance ( obj , ( types . NoneType , int , long , datetime . datetime , datetime . date , datetime . time , float , Decimal , basestring ) )
true if the object is a native datatype that does not need to be serialized further .