Please use `isinstance` instead of comparing `type`.

In this case it is also missing checking against `long` but you can use [this idiom](http://scikit-bio.org/development/py3.html#numbers) we added yesterday to the docs ;) There's another place that needs this change.