def load_from_file(cls, filepath):
        """
        Return user-written class object from given path.
        """
        class_inst = None
        if filepath.suffix == ".py":
            py_mod = SourceFileLoader(filepath.stem, filepath.as_posix()).load_module()
            if hasattr(py_mod, cls.EXPECTED_CLASS):
                class_inst = py_mod.Py3status()
        return class_inst

        Return user-written class object from given path.
        
py3status/module.py