#3 -asserting types in doctests in a way that's compatible on 26,27 and 3

type(float) says "type" on python 2 and "class" on python 3, which is annoying to doctest