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

def is_protected_type ( obj ) : return isinstance ( obj , ( types . NoneType , int , long , datetime . datetime , datetime . date , datetime . time , float , Decimal ) )
determine if the object instance is of a protected type .