def get_class_name(x):
    """ Parse <class 'class_name'> to get only class_name. """
    s = str(type(x))
    s = s.replace("<class '", '')
    s = s.replace("<type '", '')
    s = s[0:len(s) - 2]
    return s
