<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_and_save(path, output_path=None, use_nep8=True):
 """ Call `load_and_save` to load a Python file to be compiled to the .avm format and save the result. By default, the resultant .avm file is saved along side the source file. :param path: The path of the Python file to compile :param output_path: Optional path to save the compiled `.avm` file :return: the instance of the compiler The following returns the compiler object for inspection .. code-block:: python from boa.compiler import Compiler Compiler.load_and_save('path/to/your/file.py') """


        compiler = Compiler.load(os.path.abspath(path), use_nep8=use_nep8)
        data = compiler.write()
        if output_path is None:
            fullpath = os.path.realpath(path)
            path, filename = os.path.split(fullpath)
            newfilename = filename.replace('.py', '.avm')
            output_path = '%s/%s' % (path, newfilename)

        Compiler.write_file(data, output_path)
        compiler.entry_module.export_debug(output_path)

        return data