<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run(self):
 """ Runs prospector in the input files and returns a json with the analysis """

        arg_prospector = f'prospector --output-format json {self.repo.diff_files()}'
        analysis = subprocess.run(arg_prospector, stdout=subprocess.PIPE, shell=True)
        return json.loads(analysis.stdout)