# coding=utf-8 # py2 from __future__ import division import types # prefer isinstance to type assert isinstance(10/2, types.FloatType)