def to_python(self, value):
        if isinstance(value, basestring):
            try:
                value = value.split('.', 1)[0] # strip out microseconds
                value = datetime.time(*time.strptime(value, '%H:%M:%S')[3:6])
            except __HOLE__, e:
                raise ValueError('Invalid ISO time %r [%s]' % (value,
                    str(e)))
        return value
dataset/ETHPy150Open benoitc/couchdbkit/couchdbkit/schema/properties.py/TimeProperty.to_python