Simplified _compat import and fix uncommon intendation