Fixed Python2.6 and Python3.2 compile and test errors.

Python2.6 needed the doctest float values to be representable so
the return value would be exactly the number that is expected.

Python3.2 needed better conditional compilation tests for the temp_bytes
object.