Import settings on top-level compat
PEP 8 and variable name fix