s4-python: Only set BASETYPE flag if subclassing is supported.