call the method as_tuple on the result, substitute the result for sign, digits and exponent, respectively. append result of method six.text_type called with an argument digit to an list, for every digit in reversed order of digits,
digits = [ six . text_type ( digit ) for digit in reversed ( digits ) ]