fixed 'str' does not support the buffer interface error in class Analysis