def METHOD_NAME(self, item):
    if item is not None and not isinstance(item, bool) and \
        (isinstance(item, basestring) or
         isinstance(item, int) or
         isinstance(item, long) or
         isinstance(item, float)):
        return True
    return False