Python Test If Float Is Not Iterable