def is_valid_name(name):
    """Returns True if name is a valid package name, else False."""
    if name != name.strip():
        return False
    if name in ('package', 'packages'):
        return False
    return True
