Python type() and __class__