def is_scalar(space, w_obj):
    """ Finds whether a variable is a scalar"""
    return space.wrap(w_obj.tp in (space.tp_int, space.tp_float,
                                   space.tp_str, space.tp_bool))