def import_style(name):
    """
    Simple utility function, taken from the __import__ docstring to import classes.
    """
    mod = __import__('auto_version.styles', fromlist=[name])
    klass = getattr(mod, name)
    return klass
