Simplified If statements that have changed by assigning unicode string datatype in init method instead of checking at each occurance of isinstance.