Representation of significant figures in Python